package com.ddwl.shop.dao;

import com.ddwl.common.dao.TkDao;
import com.ddwl.common.util.BeanConverUtils;
import com.ddwl.shop.dao.mapper.ShopApproveAssistRecordMapper;
import com.ddwl.shop.dao.mapper.ShopApproveOrderMapper;
import com.ddwl.shop.dao.model.ShopApproveAssistRecord;
import com.ddwl.shop.dao.model.ShopApproveOrder;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * (ShopApproveOrder)表数据库访问层
 * @author wenbin
 */
@Slf4j
@Repository
public class ShopApproveOrderDao extends TkDao<ShopApproveOrderMapper, ShopApproveOrder> {
    /**
     * 开店付款单
     * @return
     */
    public ShopApproveOrder queryShopApproveOrder(String approveId){
        Example example = getExample();
        example.and().andEqualTo("shopApproveId",approveId);
        example.setOrderByClause(" gmt_Created limit 1 ");
        return baseMapper.selectOneByExample(example);
    }

}